/*
* MTooltip
*/

.M-tooltip{
  display: inline-block;
  position: relative;
  &:hover .M-tooltip-inner{
    opacity: 1;
    visibility: visible;
  }
}
.M-tooltip-inner{
  white-space:nowrap;  
  visibility: hidden;
  font-size: 13px;
  padding: 6px 12px;
  color: #fff;
  text-align: center;
  text-decoration: none;
  @include showbackgroundColor(#4b4b4b);
  border-radius: 5px;
  opacity: 0;
  transition: opacity .7s cubic-bezier(.645,.045,.355,1);
}
.M-tooltip-arrow{
  position: absolute;
  width: 0;
  height: 0;
  @include showborderColor()
  border-style: solid;
}
// 左边
.M-tooltip-leftTop,.M-tooltip-left,.M-tooltip-leftBottom{
  position: absolute;
  right: 100%;
  margin-right: 12px;
  .M-tooltip-arrow{
    border-width: 5px 0 5px 5px;
    border-left-color: #4b4b4b;
  }
}
.M-tooltip-leftTop{
  top: 0;
  right: 100%;
  .M-tooltip-arrow{
    right: -5px;
  }
}
.M-tooltip-left{
  top: 50%;transform:translateY(-50%);
  right: 100%;
  .M-tooltip-arrow{
    top: 50%;
    margin-top:-5px;
    right: -5px;
  }
}
.M-tooltip-leftBottom{
  right: 100%;
  bottom: 0;
  .M-tooltip-arrow{
    bottom: 5px;
    right: -5px;
  }
}
// 上边
.M-tooltip-default,.M-tooltip-top,.M-tooltip-topLeft,.M-tooltip-topRight{
  position: absolute;
  bottom: 100%;
  margin-bottom: 12px;
  .M-tooltip-arrow{
    bottom: -5px;
    margin-left: -5px;
    border-width: 5px 5px 0;
    border-top-color: #4b4b4b;
  }
}
.M-tooltip-topLeft{
  left: 0;
  .M-tooltip-arrow{
    left: 9px;
  }
}
.M-tooltip-default,.M-tooltip-top{
  left: 50%;
  transform:translateX(-50%);
  .M-tooltip-arrow{
    left: 50%;
  }
}
.M-tooltip-topRight{
  right: 0;
  .M-tooltip-arrow{
    right: 9px;
  }
}
// 右边
.M-tooltip-rightTop,.M-tooltip-right,.M-tooltip-rightBottom{
  position: absolute;
  left: 100%;
  margin-left: 12px;
  .M-tooltip-arrow{
    border-width: 5px 5px 5px 0;
    border-right-color: #4b4b4b;
  }
}
.M-tooltip-rightTop{
  top: 0;
  .M-tooltip-arrow{
    left: -5px;
  }
}
.M-tooltip-right{
  top: 50%;transform:translateY(-50%);
  .M-tooltip-arrow{
    top: 50%;
    margin-top:-5px;
    left: -5px
  }
}
.M-tooltip-rightBottom{
  bottom: 0;
  .M-tooltip-arrow{
    bottom: 5px;
    left: -5px
  }
}
// 底部
.M-tooltip-bottomLeft,.M-tooltip-bottom,.M-tooltip-bottomRight{
  position: absolute;
  top: 100%;
  margin-top: 12px;
  .M-tooltip-arrow{
    top: -5px;
    margin-left: -5px;
    border-width: 0 5px 5px;
    border-bottom-color: #4b4b4b;
  }
}
.M-tooltip-bottomLeft{
  left: 0;
  .M-tooltip-arrow{
    left: 9px;
  }
}
.M-tooltip-bottom{
  left: 50%;transform:translateX(-50%);
  .M-tooltip-arrow{
    left: 50%;
  }
}
.M-tooltip-bottomRight{
  right: 0;
  .M-tooltip-arrow{
    right: 9px;
  }
}

/*
* MBackTop
*/
.M-back-top{
  text-align: center;
  position: fixed;
  right: 50px;
  z-index: 1000;
  bottom: 150px;
  background: rgba(151,151,151,.8);
  display: inline-block;
  padding: 5px;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  line-height: 1.5;
  cursor: pointer;
  transition:all .2s cubic-bezier(.645,.045,.355,1);
  visibility: hidden;
}
.M-back-top:hover{
  opacity: 0.7;
}
.M-in-top{
  visibility: visible;
}
.M-icon{
  display: inline-block;
  font-style: normal;
  vertical-align: baseline;
  text-align: center;
  text-transform: none;
  text-rendering: auto;
  line-height: 1;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}